using GraphMyCode.Client.AssemblyService;

namespace GraphMyCode.Client.ViewModels
{
	public class AssemblyGraphViewModel : ViewModelBase
	{
		private GraphMapDto assemblyGraph;
		private GraphMapViewModel graph;

		public GraphMapDto AssemblyGraphDto
		{
			get { return assemblyGraph; }
			set
			{
				if (assemblyGraph == value)
					return;

				assemblyGraph = value;
				Graph = new GraphMapViewModel(assemblyGraph);
				OnPropertyChanged("AssemblyGraph");
			}
		}

		public GraphMapViewModel Graph
		{
			get { return graph; }
			private set
			{
				graph = value;
				OnPropertyChanged("Graph");
			}
		}
	}
}